<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>基本信息</title>
    <link href="css/base.css" rel="stylesheet">
    <link rel="stylesheet" href="jquery-easyui-1.5.3/themes/default/easyui.css">
    <link href="jquery-easyui-1.5.3/themes/icon.css" rel="stylesheet">
    <link href="css/basic_info.css" rel="stylesheet">
    <link rel="stylesheet" href="css/xk.css">
    <script type="text/javascript" src="font_jjkmvgsdpk/iconfont.js"></script>
    <link rel="stylesheet" href="font_jjkmvgsdpk/iconfont.css">
    <link href="css/process.css" rel="stylesheet">
</head>
<body>
<div class="container">
    <div class="xk_submit" style="height: 24px;background-color: #eeeeee;text-align: center;bottom: 0;right: 0;left: 0;position: fixed;">
        <button class="easyui-linkbutton" type="button" onclick="edit_fxyj_readyonly()" iconCls="icon-edit" style="height: 24px;margin-left: 5px;">修改</button>
        <button class="easyui-linkbutton" type="button" iconCls="icon-large-clipart" style="height: 24px;margin-left: 5px;">打印</button>
    </div>
    <div class="content">
        <form>
            <table class="xk_table">
                <tr>
                    <td class="xk_label_fxyj_readonly">现场分析依据的材料</td>
                    <td colspan="2"></td>
                </tr>
                <tr>
                    <td class="xk_label_fxyj_readonly">案件性质</td>
                    <td colspan="2"></td>
                </tr>
                <tr>
                    <td class="xk_label_fxyj_readonly">选择对象</td>
                    <td colspan="2"></td>
                </tr>
                <tr>
                    <td class="xk_label_fxyj_readonly">选择处所</td>
                    <td colspan="2"></td>
                </tr>
                <tr>
                    <td class="xk_label_fxyj_readonly">作案时机</td>
                    <td colspan="2"></td>
                </tr>
                <tr>
                    <td class="xk_label_fxyj_readonly">作案入口</td>
                    <td colspan="2"></td>
                </tr>
                <tr>
                    <td class="xk_label_fxyj_readonly">作案出口</td>
                    <td colspan="2"></td>
                </tr>
                <tr>
                    <td class="xk_label_fxyj_readonly">作案手段</td>
                    <td colspan="2"></td>
                </tr>
                <tr>
                    <td class="xk_label_fxyj_readonly">侵入方式</td>
                    <td colspan="2"></td>
                </tr>
                <tr>
                    <td class="xk_label_fxyj_readonly">作案特点</td>
                    <td colspan="2"></td>
                </tr>
                <tr>
                    <td class="xk_label_fxyj_readonly">作案动机目的</td>
                    <td colspan="2"></td>
                </tr>
            </table>
            <table class="xk_table" style="margin-top: 0">
                <tr>
                    <td class="xk_label" style="width: 13.3%;">作案人数</td>
                    <td colspan="2"></td>
                </tr>
                <tr>
                    <td class="xk_label_L">作案地点</td>
                    <td colspan="2"></td>
                </tr>
                <tr>
                    <td class="xk_label_L">作案工具</td>
                    <td colspan="5"></td>
                </tr>
                <tr>
                    <td colspan="6">
                        <table class="xk_table02" id="zagj_table" style="margin-top: 0;">
                            <tr>
                                <th class="xk_label" style="width: 1.6%;">序号</th>
                                <th class="xk_label">工具名称</th>
                                <th class="xk_label">工具类目</th>
                                <th class="xk_label">工具来源</th>
                                <th class="xk_label">描述</th>
                            </tr>
                            <tbody id="add_zagj_tr">

                            </tbody>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td class="xk_label_textarea02" style="height: 120px">作案过程</td>
                    <td colspan="5"></td>
                </tr>
                <tr>
                    <td class="xk_label_textarea02" style="height: 120px">作案人特点</td>
                    <td colspan="5"></textarea></td>
                </tr>
                <tr>
                    <td class="xk_label_textarea02" style="height: 120px">串并意见与根据</td>
                    <td colspan="5"></textarea></td>
                </tr>
                <tr>
                    <td class="xk_label_textarea02" style="height: 120px">工作建议</td>
                    <td colspan="5"></textarea></td>
                </tr>
                <tr>
                    <td class="xk_label_L">现场分析单位</td>
                    <td colspan="2"></td>
                </tr>
            </table>
            <table class="xk_table" style="margin-top: 0;">
                <tbody>
                <tr>
                    <td style="width: 13.3%;" class="xk_label_L">现场分析人</td>
                    <td></td>
                    <td style="width: 13.3%;" class="xk_label_L">现场分析时间</td>
                    <td></td>
                </tr>
                </tbody>
            </table>
        </form>
    </div>
</div>
</body>
<script type="text/javascript" src="jquery-easyui-1.5.3/jquery.min.js"></script>
<script type="text/javascript" src="jquery-easyui-1.5.3/jquery.easyui.min.js"></script>
<script type="text/javascript">
    //高度适应
    var x = $(".xk_submit").height();
    $(".content").css("margin-bottom",x);
    //作案工具table
    var zagj = 0;
    $("#zagj_add_btn").click(function(){
        var zagj_tr_num = ++zagj;
        $("#add_zagj_tr").append("<tr>"+
            "<th style='width: 1.6%;'>"+"<input type='' readonly='readonly' value='"+zagj_tr_num+"' name='' class='xk_input04'>"+"</th>"+
            "<th>"+
            "<input type='text'  readonly='readonly' class='xk_input04' name=''>"+
            "</th>"+
            "<th>"+
            "<input type='text'  readonly='readonly' class='xk_input04' name=''>"+
            "</th>"+
            "<th>"+
            "<input type='text'  readonly='readonly' class='xk_input04' name=''>"+
            "</th>"+
            "<th>"+
            "<input type='text' readonly='readonly' class='xk_input04' name=''>"+
            "</th>"+
            "</tr>");
        $.parser.parse("#zagj_table");
    });
    //删除一行作案工具
    function zagj_tr_del(obj){
        //控制序号
        var count = $("#zagj_table").find("tr").length-1;
        //得到当前所在行
        var rows = obj.parentNode.parentNode.rowIndex;
        obj.parentNode.parentNode.remove();
        zagj--;
        if(rows <= count){
            for(var i = rows;i<=count;i++){
                var j = i-1;
                var val =$("#zagj_table tr:gt("+j+") th:eq(0)").find("input").first().val();
                var cou = val - 1;
                $("#zagj_table tr:gt("+j+") th:eq(0)").find("input").first().val(cou);
            }
        }
    }
    function edit_fxyj_readyonly() {
        window.location.href="fxyj";
    }
</script>
</html>